Optimal. Leaf size=63 \[ \frac{121 (19-7 x)}{184 \left (2 x^2-x+3\right )}+\frac{55}{8} \log \left (2 x^2-x+3\right )+\frac{25 x}{4}+\frac{1859 \tan ^{-1}\left (\frac{1-4 x}{\sqrt{23}}\right )}{92 \sqrt{23}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0629492, antiderivative size = 63, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24, Rules used = {1660, 1657, 634, 618, 204, 628} \[ \frac{121 (19-7 x)}{184 \left (2 x^2-x+3\right )}+\frac{55}{8} \log \left (2 x^2-x+3\right )+\frac{25 x}{4}+\frac{1859 \tan ^{-1}\left (\frac{1-4 x}{\sqrt{23}}\right )}{92 \sqrt{23}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1660
Rule 1657
Rule 634
Rule 618
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{\left (2+3 x+5 x^2\right )^2}{\left (3-x+2 x^2\right )^2} \, dx &=\frac{121 (19-7 x)}{184 \left (3-x+2 x^2\right )}+\frac{1}{23} \int \frac{\frac{163}{4}+\frac{1955 x}{4}+\frac{575 x^2}{2}}{3-x+2 x^2} \, dx\\ &=\frac{121 (19-7 x)}{184 \left (3-x+2 x^2\right )}+\frac{1}{23} \int \left (\frac{575}{4}-\frac{11 (71-115 x)}{2 \left (3-x+2 x^2\right )}\right ) \, dx\\ &=\frac{25 x}{4}+\frac{121 (19-7 x)}{184 \left (3-x+2 x^2\right )}-\frac{11}{46} \int \frac{71-115 x}{3-x+2 x^2} \, dx\\ &=\frac{25 x}{4}+\frac{121 (19-7 x)}{184 \left (3-x+2 x^2\right )}+\frac{55}{8} \int \frac{-1+4 x}{3-x+2 x^2} \, dx-\frac{1859}{184} \int \frac{1}{3-x+2 x^2} \, dx\\ &=\frac{25 x}{4}+\frac{121 (19-7 x)}{184 \left (3-x+2 x^2\right )}+\frac{55}{8} \log \left (3-x+2 x^2\right )+\frac{1859}{92} \operatorname{Subst}\left (\int \frac{1}{-23-x^2} \, dx,x,-1+4 x\right )\\ &=\frac{25 x}{4}+\frac{121 (19-7 x)}{184 \left (3-x+2 x^2\right )}+\frac{1859 \tan ^{-1}\left (\frac{1-4 x}{\sqrt{23}}\right )}{92 \sqrt{23}}+\frac{55}{8} \log \left (3-x+2 x^2\right )\\ \end{align*}
Mathematica [A] time = 0.0301396, size = 63, normalized size = 1. \[ -\frac{121 (7 x-19)}{184 \left (2 x^2-x+3\right )}+\frac{55}{8} \log \left (2 x^2-x+3\right )+\frac{25 x}{4}-\frac{1859 \tan ^{-1}\left (\frac{4 x-1}{\sqrt{23}}\right )}{92 \sqrt{23}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.045, size = 51, normalized size = 0.8 \begin{align*}{\frac{25\,x}{4}}+{\frac{11}{4} \left ( -{\frac{77\,x}{92}}+{\frac{209}{92}} \right ) \left ({x}^{2}-{\frac{x}{2}}+{\frac{3}{2}} \right ) ^{-1}}+{\frac{55\,\ln \left ( 2\,{x}^{2}-x+3 \right ) }{8}}-{\frac{1859\,\sqrt{23}}{2116}\arctan \left ({\frac{ \left ( -1+4\,x \right ) \sqrt{23}}{23}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.42417, size = 70, normalized size = 1.11 \begin{align*} -\frac{1859}{2116} \, \sqrt{23} \arctan \left (\frac{1}{23} \, \sqrt{23}{\left (4 \, x - 1\right )}\right ) + \frac{25}{4} \, x - \frac{121 \,{\left (7 \, x - 19\right )}}{184 \,{\left (2 \, x^{2} - x + 3\right )}} + \frac{55}{8} \, \log \left (2 \, x^{2} - x + 3\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.02616, size = 234, normalized size = 3.71 \begin{align*} \frac{52900 \, x^{3} - 3718 \, \sqrt{23}{\left (2 \, x^{2} - x + 3\right )} \arctan \left (\frac{1}{23} \, \sqrt{23}{\left (4 \, x - 1\right )}\right ) - 26450 \, x^{2} + 29095 \,{\left (2 \, x^{2} - x + 3\right )} \log \left (2 \, x^{2} - x + 3\right ) + 59869 \, x + 52877}{4232 \,{\left (2 \, x^{2} - x + 3\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.170856, size = 61, normalized size = 0.97 \begin{align*} \frac{25 x}{4} - \frac{847 x - 2299}{368 x^{2} - 184 x + 552} + \frac{55 \log{\left (x^{2} - \frac{x}{2} + \frac{3}{2} \right )}}{8} - \frac{1859 \sqrt{23} \operatorname{atan}{\left (\frac{4 \sqrt{23} x}{23} - \frac{\sqrt{23}}{23} \right )}}{2116} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18982, size = 70, normalized size = 1.11 \begin{align*} -\frac{1859}{2116} \, \sqrt{23} \arctan \left (\frac{1}{23} \, \sqrt{23}{\left (4 \, x - 1\right )}\right ) + \frac{25}{4} \, x - \frac{121 \,{\left (7 \, x - 19\right )}}{184 \,{\left (2 \, x^{2} - x + 3\right )}} + \frac{55}{8} \, \log \left (2 \, x^{2} - x + 3\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]